/*
 * <p>Copyright ®Alyce_WX版权所有。</p>
 * 类名:ViewDictTypePO
 * 创建人:alyce_wx
 * 创建时间:2017-03-30
 */
package com.wx.demo.wcd.domain.po;


import com.yjhl.framework.domain.po.PO;
import com.wx.demo.wcd.domain.pk.ViewDictTypePK;

/**
 * persistent class for ViewDictType view
 * @author alyce_wx
 * @since 1.8
 * @version 1.0.0  
 */
 
public class ViewDictTypePO extends PO {
    private static final long serialVersionUID = 1L;

    /**
     * 字典标识
     */
    private String dictId;
    /**
     * 字典标题
     */
    private String dictTitle;
    /**
     * 字典标题
     */
    private String dictCode;
    /**
     * 字典类型代码
     */
    private String dictTypeCode;
    /**
     * 父级代码
     */
    private String parentCode;
    /**
     * 状态代码
     */
    private String stsCode;
    /**
     * 字典类型表标识
     */
    private String dictTypeId;
    /**
     * 字典类型标题
     */
    private String dictTypeTitle;

    public String getDictId() {
        return dictId;
    }

    public void setDictId(String dictId) {
        this.dictId = dictId;
    }

    public String getDictTitle() {
        return dictTitle;
    }

    public void setDictTitle(String dictTitle) {
        this.dictTitle = dictTitle;
    }

    public String getDictCode() {
        return dictCode;
    }

    public void setDictCode(String dictCode) {
        this.dictCode = dictCode;
    }

    public String getDictTypeCode() {
        return dictTypeCode;
    }

    public void setDictTypeCode(String dictTypeCode) {
        this.dictTypeCode = dictTypeCode;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getStsCode() {
        return stsCode;
    }

    public void setStsCode(String stsCode) {
        this.stsCode = stsCode;
    }

    public String getDictTypeId() {
        return dictTypeId;
    }

    public void setDictTypeId(String dictTypeId) {
        this.dictTypeId = dictTypeId;
    }

    public String getDictTypeTitle() {
        return dictTypeTitle;
    }

    public void setDictTypeTitle(String dictTypeTitle) {
        this.dictTypeTitle = dictTypeTitle;
    }
    
    
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isNull()
	 */
	@Override
    public boolean isNull(){
		return (		
    		dictId == null     	
    		&&
    		dictTitle == null     	
    		&&
    		dictCode == null     	
    		&&
    		dictTypeCode == null     	
    		&&
    		parentCode == null     	
    		&&
    		stsCode == null     	
    		&&
    		dictTypeId == null     	
    		&&
    		dictTypeTitle == null     	
				);
	}
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isEmpty()
	 */
	@Override
    public boolean isEmpty(){
		return (		
    	dictId == null 
    		&&
    	dictTitle == null 
    		&&
    	dictCode == null 
    		&&
    	dictTypeCode == null 
    		&&
    	parentCode == null 
    		&&
    	stsCode == null 
    		&&
    	dictTypeId == null 
    		&&
    	dictTypeTitle == null 
				);
	}
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#isNonPkNull()
	 */
	@Override
    public boolean isNonPkNull(){
		return (		
    		dictTitle == null     	
    		&&
    		dictCode == null     	
    		&&
    		dictTypeCode == null     	
    		&&
    		parentCode == null     	
    		&&
    		stsCode == null     	
    		&&
    		dictTypeId == null     	
    		&&
    		dictTypeTitle == null     	
				);
	}

	/**
	 * @see com.yjhl.framework.domain.po.PO#isNonPkEmpty()
	 */
	@Override
    public boolean isNonPkEmpty(){
		return (		
    	dictTitle == null 
    		&&
    	dictCode == null 
    		&&
    	dictTypeCode == null 
    		&&
    	parentCode == null 
    		&&
    	stsCode == null 
    		&&
    	dictTypeId == null 
    		&&
    	dictTypeTitle == null 
				);
	}
	
	
	/**
	 * @see com.yjhl.framework.domain.po.PO#buildPK()
	 */
	@Override
    public ViewDictTypePK buildPK(){
    	ViewDictTypePK entityPK = new ViewDictTypePK();
    	
		entityPK.setDictId( dictId );
    	
    	return entityPK;
	}
	
	@Override
	public String toString(){
		
		String toString = "{";
		  	 if(this.dictId != null){
		   	 	toString += (this.dictId+",");
		   	 }
		  	 if(this.dictTitle != null){
		   	 	toString += (this.dictTitle+",");
		   	 }
		  	 if(this.dictCode != null){
		   	 	toString += (this.dictCode+",");
		   	 }
		  	 if(this.dictTypeCode != null){
		   	 	toString += (this.dictTypeCode+",");
		   	 }
		  	 if(this.parentCode != null){
		   	 	toString += (this.parentCode+",");
		   	 }
		  	 if(this.stsCode != null){
		   	 	toString += (this.stsCode+",");
		   	 }
		  	 if(this.dictTypeId != null){
		   	 	toString += (this.dictTypeId+",");
		   	 }
		  	 if(this.dictTypeTitle != null){
		   	 	toString += (this.dictTypeTitle+",");
		   	 }
		  if(toString.lastIndexOf(",") == ( toString.length()-1)){
		  	toString = toString.substring(0, toString.length()-1);
		  }
		 toString += "}";
		return toString;
		
	}
	
	public String inputDescription(){
		
		String inputDescription = "{";
		   if(this.dictId != null){
		   		inputDescription += (this.dictId+" : 字典标识,");
		   }
		   if(this.dictTitle != null){
		   		inputDescription += (this.dictTitle+" : 字典标题,");
		   }
		   if(this.dictCode != null){
		   		inputDescription += (this.dictCode+" : 字典标题,");
		   }
		   if(this.dictTypeCode != null){
		   		inputDescription += (this.dictTypeCode+" : 字典类型代码,");
		   }
		   if(this.parentCode != null){
		   		inputDescription += (this.parentCode+" : 父级代码,");
		   }
		   if(this.stsCode != null){
		   		inputDescription += (this.stsCode+" : 状态代码,");
		   }
		   if(this.dictTypeId != null){
		   		inputDescription += (this.dictTypeId+" : 字典类型表标识,");
		   }
		   if(this.dictTypeTitle != null){
		   		inputDescription += (this.dictTypeTitle+" : 字典类型标题,");
		   }
		  if(inputDescription.lastIndexOf(",") == ( inputDescription.length()-1)){
		  	inputDescription = inputDescription.substring(0, inputDescription.length()-1);
		  }
		  inputDescription += "}";
		
		return inputDescription;
		
	}
	
	
}
